<template>
  <div class="cnimer-wrap">
    <div class="cnimer-wrap-tname">
      <div class="cnimer-wrap-cnimer">
        <span class="cnimer-wrap-yy">影院:</span>
        <div>
          <span
            :class="{ active: num == index }"
            v-for="(item, index) in 29"
            @click="tabs(index)"
            >全部</span
          >
        </div>
      </div>
      <div class="cnimer-wrap-cnimer">
        <span class="cnimer-wrap-yy">行政区:</span>
        <div>
          <span
            :class="{ active: num1 == index }"
            v-for="(item, index) in 20"
            @click="tabs1(index)"
            >雁塔区</span
          >
        </div>
      </div>
      <div class="cnimer-wrap-cnimer cnimers">
        <span class="cnimer-wrap-yy">服务:</span>
        <div>
          <span
            :class="{ active: num2 == index }"
            v-for="(item, index) in 3"
            @click="tabs2(index)"
            >可退票</span
          >
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Topnavy",
  data() {
    return {
      num: 0,
      num1: 0,
      num2: 0,
    };
  },
  mounted() {},
  methods: {
    tabs(index) {
      this.num = index;
    },
    tabs1(index) {
      this.num1 = index;
    },
    tabs2(index) {
      this.num2 = index;
    },
  },
};
</script>

<style lang="scss" scoped>
.cnimer-wrap {
  margin: 80px auto;
  width: 1200px;
  /* min-height: 600px; */
  padding: 30px 0;
  box-sizing: border-box;
  /* background: rgb(82, 160, 224); */
  .cnimer-wrap-tname {
    width: 100%;
    border: 1px solid rgb(228, 227, 227);
    min-height: 200px;
    div {
      width: 100%;
      min-height: 50px;
      margin-bottom: 5px;
    }
    .cnimers{
      border:none!important;

    }
    .cnimer-wrap-cnimer {
      box-sizing: border-box;
      padding: 10px;
      display: flex;
      border-bottom:1px solid rgb(219, 218, 218) ;
      .cnimer-wrap-yy {
        width: 80px;
        height: 30px;
        margin: 20px 10px;
        font-size: 20px;
        font-weight: bold;
      }
      div {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        span {
          padding: 5px 10px;
          margin-right: 5px;
          border-radius: 8px;
        }
      }
    }
  }
}
.active {
  background: #ed4036;
  color: #fff;
}
</style>
